<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main"/>
        <g:javascript src="app/usuario.js" />
    </head>
    <body>
      <h1>Exibir Usuário</h1><hr/>
          <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
          </g:if>
    <br/>
          <div>
                <table class="textoverdana">
                    <tbody>

                        <tr>
                            <td valign="top" width="100"><strong>Nome:</strong></td>
                            <td valign="top">${fieldValue(bean:usuario, field:'nome')}</td>
                        </tr>

                        <tr>
                            <td valign="top"><strong>Login:</strong></td>
                            <td valign="top">${fieldValue(bean:usuario, field:'login')}</td>
                        </tr>
						
                        <tr>
                            <td valign="top"><strong>Grupo:</strong></td>
                            <td valign="top">${fieldValue(bean:usuario?.grupo, field:'descricao')}</td>
                        </tr>

                        <tr>
                            <td valign="top"><strong>Criado em:</strong></td>
                            <td valign="top"><g:formatDate format="dd/MM/yyyy - HH:mm:ss" date="${usuario.dateCreated}"/></td>
                        </tr> 

                        <tr>
                            <td valign="top"><strong>Atualizado em:</strong></td>
                            <td valign="top"><g:formatDate format="dd/MM/yyyy - HH:mm:ss" date="${usuario.lastUpdated}"/></td>
                        </tr> 
                    </tbody>
                </table>
            
                <br/> <strong>Aplica&ccedil;&otilde;es do Grupo:</strong> <br/>
                  <g:select style="width:100%" id="lista2" multiple="multiple" size="10" from="${grupoAplicacao}" optionKey="id" optionValue="${{it.menu.descricao+' - '+it.descricao}}"></g:select>
                <br/><br/><strong>Aplica&ccedil;&otilde;es Exclusivas:</strong> <br/>
                  <g:select style="width:100%" id="lista1" multiple="multiple" size="10" from="${usuarioAplicacao}" optionKey="id" optionValue="${{it.menu.descricao+' - '+it.descricao}}"></g:select>

          </div>
          <p align="left">
              <g:form controller="usuario">
                    <input type="hidden" name="id" value="${usuario?.id}" />
                    <g:actionSubmit class="botao" id="atualizar" action="edit" value="Editar" />
                    <g:link action="list"><input class="botao" id="voltar" type="button" value="Voltar" /></g:link>
              </g:form>
          </p>            
    </body>
</html>